﻿#pragma once

#include "basiclogger.h"
#include <QFile>
class LoggerQDebug : public BasicLogger
{
    Q_OBJECT

public:
    explicit LoggerQDebug(QObject* parent = nullptr);
    ~LoggerQDebug();

protected:
    virtual void print(const QString& file, int line, const QString& func, void* tid, int level,
                       const QVariant& var, bool up);

private:
    static void handle(QtMsgType type, const QMessageLogContext& contex, const QString& msg);
    QThread*    m_td = nullptr;
};
